ZhuangBeiGuide={}
--ZhuangBeiGuideFunc={}
--ZhuangBeiGuideFunc.__index = ZhuangBeiGuideFunc
--setmetatable(ZhuangBeiGuide, ZhuangBeiGuideFunc)
ZhuangBeiGuide.state=-1
ZhuangBeiGuide.showZhuangBei = function(self)
  setTouchEnabledAll(MainScene.node, false)
  MainScene.addMask(1012)
  setTouchEnabledAll(MainScene.getBuilding(1012), true)
end
ZhuangBeiGuide.showEquip = function(self)
  print("ZhuangBeiGuide.showEquip", ZhuangBeiScene.instance.node)
  setTouchEnabledAll(ZhuangBeiScene.instance.node, false)
  setTouchEnabledAll(ZBCDLayer.instance.bagTable.buttonsInBag[1], true)
end
ZhuangBeiGuide.showDlg = function(self)
  setTouchEnabledAll(ZhuangBeiScene.instance.node, false)
  TypeCast(ZBCDLayer.instance.tipLayer:getChildByTag(2002), "CCButton"):setEnabled(true)
end
ZhuangBeiGuide.close = function(self)
  setTouchEnabledAll(ZhuangBeiScene.instance.node, false)
  TypeCast(ZhuangBeiScene.instance.node:getChildByTag(1002), "CCButton"):setEnabled(true)
end
ZhuangBeiGuide.nextStep = function(self)
  print("ZhuangBeiGuide.nextStep", ZhuangBeiGuide.state)
  if ZhuangBeiGuide.state==-1 then
    ZhuangBeiGuide.showZhuangBei()    
    ZhuangBeiGuide.state=0
  elseif ZhuangBeiGuide.state==0 then
    ZhuangBeiGuide.showEquip()
    ZhuangBeiGuide.state=1
  elseif ZhuangBeiGuide.state==1 then
    ZhuangBeiGuide.showDlg() 
    ZhuangBeiGuide.state=2
  elseif ZhuangBeiGuide.state==2 then
    ZhuangBeiGuide.close() 
    ZhuangBeiGuide.state=3
  end
end
